//
//  my_editButton.m
//  Bullet
//
//  Created by admin on 2019/8/14.
//  Copyright © 2019 . All rights reserved.
//

#import "my_editButton.h"

@implementation my_editButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    UIButton * textShowButtonTo1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        NSString * textShowButtonTitleTo1 = @"测试功能";
        [textShowButtonTo1 setTitle:textShowButtonTitleTo1 forState:UIControlStateNormal];
        NSInteger textShowArcTo1 = arc4random_uniform(22);
        NSLog(@"随机数：%ld", (long)textShowArcTo1);
    }
    return self;
}

- (CGRect)imageRectForContentRect:(CGRect)contentRect

{
    CGFloat imageW =6;

    CGFloat imageH = 10;

    CGFloat imageX = 15;

    CGFloat imageY = 10;

    contentRect = (CGRect){{imageX,imageY},{imageW,imageH}};
    return contentRect;

}
@end
